import request from '@/utils/request'

//课题分页列表 - 管理员
export function queryPageList(data) {
	return request({
		method: 'post',
		url: 'tbTopic/queryPageList',
		headers: {
			userButton: 'e0f06904ccb34b96a15cc5290f6024ff'
		},
		data
	})
}

//课题分页列表 - 用户
export function queryUserPageList(data) {
	return request({
		method: 'post',
		url: 'tbTopic/queryUserPageList',
		headers: {
			userButton: 'dcd7296b45444a519466953e369bf173'
		},
		data
	})
}

//课题分页列表 - PI审核
export function queryAuditPageList(data) {
	return request({
		method: 'post',
		url: 'tbTopic/queryAuditPageList',
		headers: {
			userButton: 'bcc239a5fdc5433ab2f18b4f84435de4'
		},
		data
	})
}

//课题分页列表 - PI审核的课题列表
export function queryAuditSelectList(data) {
	return request({
		method: 'post',
		url: 'tbTopic/queryAuditSelectList',
		headers: {
			userButton: 'bcc239a5fdc5433ab2f18b4f84435de4'
		},
		data
	})
}

//课题分页列表 - 统计分页列表
export function queryDownPageList(data) {
	return request({
		method: 'post',
		url: 'tbTopic/queryDownPageList',
		headers: {
			userButton: '36da4e885fcb40ef8a82232b53ea0838'
		},
		data
	})
}

//课题分页列表 - 课题成果邮件
export function queryMailPageList(data) {
	return request({
		method: 'post',
		url: 'tbTopic/queryMailPageList',
		headers: {
			userButton: '55f5b87421f348e5a49cc29808ecb8ae'
		},
		data
	})
}

//添加课题
export function addedTopic(data) {
	return request({
		method: 'post',
		url: 'tbTopic/add',
		headers: {
			userButton: '3cb709a9f85647c199c1efc56e459486'
		},
		data
	})
}

//删除课题
export function batchDeleteData(data) {
	return request({
		method: 'post',
		url: 'tbTopic/batchDelete',
		headers: {
			userButton: 'c5b3af8b99f14d07af755734343a1372'
		},
		data
	})
}

//修改课题
export function updateTopic(data) {
	return request({
		method: 'post',
		url: 'tbTopic/update',
		headers: {
			userButton: '050dd767c0f7416eb91dbe72f655d4d9'
		},
		data,
	})
}

//课题详情
export function topicDetail(id) {
	return request({
		method: 'get',
		url: 'tbTopic/query/' + id,
		headers: {
			userButton: 'ad3ec74b104c491184d3f7f16c948178'
		},
	})
}

//课题审核
export function topicAudit(data) {
	return request({
		method: 'post',
		url: 'tbTopic/audit',
		headers: {
			userButton: '0b1475564d1c4bcfa5a7017432b5c7ac'
		},
		data
	})
}

//管理员修改课题
export function managerUpdateTopic(data) {
	return request({
		method: 'post',
		url: 'tbTopic/updateBase',
		headers: {
			userButton: '3bac79e763d948e6b27e9bf75740c878'
		},
		data,
	})
}